<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <meta name="viewport" content="initial-scale=1,width=device-width,user-scalable=no">
    <link rel="stylesheet" href="animate.css">
    <style>
        
    </style>
</head>
<body>
    <div id="app">
    	
    	<input type="text" ref='input1'>
    	<button @click='click'>测试</button>
       	<p>{{test}}</p>
    </div>
    <script src='vue.js'></script>
    <script>
       
        var app = new Vue({
	        	el:'#app',
	        	data:{
	        		test:''
	        	},
	        	methods:{
	        		click:function() {
	        			this.test = this.$refs.input1.value
	        		}
	        	}
	        })
    </script>
</body>
</html>